<%-- 
    Document   : getlink
    Created on : Jul 18, 2013, 2:06:14 PM
    Author     : tuanta
--%>

<%@page import="java.security.MessageDigest"%>
<%@page import="telsoft.util.StringUtil"%>
<%@page import="telsoft.admin.util.AppServer"%>
<%@page import="telsoft.admin.util.AppAuthenticator"%>
<%@page import="telsoft.admin.bean.PermissionBean"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            String strUserName = request.getParameter("username");
            String strPassword = request.getParameter("password");
            AppAuthenticator aa = new AppAuthenticator();
            aa.setConnection(AppServer.getConnection());
            
            aa.verifyPassword(strUserName,  StringUtil.encrypt(strPassword, "SHA"));
        %>
    </body>
</html>
